import request from "@/utils/api"

type loginType={
    account:string
    password:string
}

export async function login(data:loginType){
    return await request({
        url:'api/users/login',
        method:'post',
        data
    })
}
export async function register(data:loginType){
    return await request({
        url:'api/users/register',
        method:'post',
        data
    })
}